package com.pig.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.pig.dao.CategoryDao;
import com.pig.pojo.goods.Category;
import com.pig.service.goods.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;

    @Override
    public List<Category> findAllCategory() {
        QueryWrapper<Category> query = new QueryWrapper<>();
        return categoryDao.selectList(query);
    }
}
